package moderl

import "gorm.io/gorm"

type User struct { ///用户表
	gorm.Model
	UserName string `gorm:"type:varchar(50)"`
	Password string `gorm:"type:varchar(50)"`
	Tel      string `gorm:"type:varchar(50)"`
}

type Role struct {
	gorm.Model
	RoleName string `gorm:"type:varchar(50)"`
}

type UserRole struct {
	gorm.Model
	Uid int `gorm:"type:int"`
	Rid int `gorm:"type:int"`
}
type Node struct {
	gorm.Model
	NodeName string `gorm:"type:varchar(50)"`
}

type RoleNode struct {
	gorm.Model
	Uid int `gorm:"type:int"`
	Rid int `gorm:"type:int"`
}

type Car struct {
	gorm.Model
	CarNo   string `gorm:"type:varchar(50)"` //车辆编号
	CarName string `gorm:"type:varchar(50)"` //车辆名称
	CarTime string `gorm:"type:varchar(50)"` //车辆购买日期
}
type CarDd struct {
	gorm.Model
	DdNo  string `gorm:"type:varchar(50)"` //订单编号
	DdFh  string `gorm:"type:varchar(50)"` //订单发货地
	DdSh  string `gorm:"type:varchar(50)"` //订单收货地
	CarId int    `gorm:"type:int"`         //车辆表
}
type CarDdList struct {
	CarNo   string `gorm:"type:varchar(50)"`
	CarName string `gorm:"type:varchar(50)"`
	CarTime string `gorm:"type:varchar(50)"`
	DdNo    string `gorm:"type:varchar(50)"`
	DdFh    string `gorm:"type:varchar(50)"`
	DdSh    string `gorm:"type:varchar(50)"`
}
